package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_toString_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_toString_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_import_3_3 = new TagInfo("java:import", //$NON-NLS-1$
            3, 3,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_iterate_5_3 = new TagInfo("c:iterate", //$NON-NLS-1$
            5, 3,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$pcols", //$NON-NLS-1$
                "p", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_19 = new TagInfo("c:get", //$NON-NLS-1$
            6, 19,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($p/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_73 = new TagInfo("c:get", //$NON-NLS-1$
            6, 73,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($p/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_9_3 = new TagInfo("c:iterate", //$NON-NLS-1$
            9, 3,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$bcols", //$NON-NLS-1$
                "c", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_10_4 = new TagInfo("c:choose", //$NON-NLS-1$
            10, 4,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_11_5 = new TagInfo("c:when", //$NON-NLS-1$
            11, 5,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$c/@name='id'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_21 = new TagInfo("c:get", //$NON-NLS-1$
            12, 21,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($c/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_77 = new TagInfo("c:get", //$NON-NLS-1$
            12, 77,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($c/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_14_5 = new TagInfo("c:otherwise", //$NON-NLS-1$
            14, 5,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_15_21 = new TagInfo("c:get", //$NON-NLS-1$
            15, 21,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($c/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_15_75 = new TagInfo("c:get", //$NON-NLS-1$
            15, 75,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($c/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("public String toString() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("\t\t");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_java_import_3_3 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_3_3); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_import_3_3.setRuntimeParent(null);
        _jettag_java_import_3_3.setTagInfo(_td_java_import_3_3);
        _jettag_java_import_3_3.doStart(context, out);
        JET2Writer _jettag_java_import_3_3_saved_out = out;
        while (_jettag_java_import_3_3.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write("java.lang.StringBuilder");  //$NON-NLS-1$        
            _jettag_java_import_3_3.handleBodyContent(out);
        }
        out = _jettag_java_import_3_3_saved_out;
        _jettag_java_import_3_3.doEnd();
        out.write(" buffer = new StringBuilder();");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\t");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_c_iterate_5_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_5_3); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_iterate_5_3.setRuntimeParent(null);
        _jettag_c_iterate_5_3.setTagInfo(_td_c_iterate_5_3);
        _jettag_c_iterate_5_3.doStart(context, out);
        while (_jettag_c_iterate_5_3.okToProcessBody()) {
            out.write("\t\t\tbuffer.append(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_19 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_19); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_19.setRuntimeParent(_jettag_c_iterate_5_3);
            _jettag_c_get_6_19.setTagInfo(_td_c_get_6_19);
            _jettag_c_get_6_19.doStart(context, out);
            _jettag_c_get_6_19.doEnd();
            out.write("=[\").append(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_73 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_73); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_73.setRuntimeParent(_jettag_c_iterate_5_3);
            _jettag_c_get_6_73.setTagInfo(_td_c_get_6_73);
            _jettag_c_get_6_73.doStart(context, out);
            _jettag_c_get_6_73.doEnd();
            out.write(").append(\"] \");");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_c_iterate_5_3.handleBodyContent(out);
        }
        _jettag_c_iterate_5_3.doEnd();
        out.write("\t\t");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_c_iterate_9_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_9_3); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_iterate_9_3.setRuntimeParent(null);
        _jettag_c_iterate_9_3.setTagInfo(_td_c_iterate_9_3);
        _jettag_c_iterate_9_3.doStart(context, out);
        while (_jettag_c_iterate_9_3.okToProcessBody()) {
            RuntimeTagElement _jettag_c_choose_10_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_10_4); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_choose_10_4.setRuntimeParent(_jettag_c_iterate_9_3);
            _jettag_c_choose_10_4.setTagInfo(_td_c_choose_10_4);
            _jettag_c_choose_10_4.doStart(context, out);
            JET2Writer _jettag_c_choose_10_4_saved_out = out;
            while (_jettag_c_choose_10_4.okToProcessBody()) {
                out = out.newNestedContentWriter();
                RuntimeTagElement _jettag_c_when_11_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_11_5); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_when_11_5.setRuntimeParent(_jettag_c_choose_10_4);
                _jettag_c_when_11_5.setTagInfo(_td_c_when_11_5);
                _jettag_c_when_11_5.doStart(context, out);
                JET2Writer _jettag_c_when_11_5_saved_out = out;
                while (_jettag_c_when_11_5.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    out.write("\t\t\t\t\tbuffer.append(\"");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_12_21 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_21); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_12_21.setRuntimeParent(_jettag_c_when_11_5);
                    _jettag_c_get_12_21.setTagInfo(_td_c_get_12_21);
                    _jettag_c_get_12_21.doStart(context, out);
                    _jettag_c_get_12_21.doEnd();
                    out.write("_1=[\").append(");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_12_77 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_77); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_12_77.setRuntimeParent(_jettag_c_when_11_5);
                    _jettag_c_get_12_77.setTagInfo(_td_c_get_12_77);
                    _jettag_c_get_12_77.doStart(context, out);
                    _jettag_c_get_12_77.doEnd();
                    out.write("_1).append(\"] \");");  //$NON-NLS-1$        
                    out.write(NL);         
                    _jettag_c_when_11_5.handleBodyContent(out);
                }
                out = _jettag_c_when_11_5_saved_out;
                _jettag_c_when_11_5.doEnd();
                RuntimeTagElement _jettag_c_otherwise_14_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_14_5); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_otherwise_14_5.setRuntimeParent(_jettag_c_choose_10_4);
                _jettag_c_otherwise_14_5.setTagInfo(_td_c_otherwise_14_5);
                _jettag_c_otherwise_14_5.doStart(context, out);
                JET2Writer _jettag_c_otherwise_14_5_saved_out = out;
                while (_jettag_c_otherwise_14_5.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    out.write("\t\t\t\t\tbuffer.append(\"");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_15_21 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_15_21); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_15_21.setRuntimeParent(_jettag_c_otherwise_14_5);
                    _jettag_c_get_15_21.setTagInfo(_td_c_get_15_21);
                    _jettag_c_get_15_21.doStart(context, out);
                    _jettag_c_get_15_21.doEnd();
                    out.write("=[\").append(");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_15_75 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_15_75); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_15_75.setRuntimeParent(_jettag_c_otherwise_14_5);
                    _jettag_c_get_15_75.setTagInfo(_td_c_get_15_75);
                    _jettag_c_get_15_75.doStart(context, out);
                    _jettag_c_get_15_75.doEnd();
                    out.write(").append(\"] \");");  //$NON-NLS-1$        
                    out.write(NL);         
                    _jettag_c_otherwise_14_5.handleBodyContent(out);
                }
                out = _jettag_c_otherwise_14_5_saved_out;
                _jettag_c_otherwise_14_5.doEnd();
                _jettag_c_choose_10_4.handleBodyContent(out);
            }
            out = _jettag_c_choose_10_4_saved_out;
            _jettag_c_choose_10_4.doEnd();
            _jettag_c_iterate_9_3.handleBodyContent(out);
        }
        _jettag_c_iterate_9_3.doEnd();
        out.write(NL);         
        out.write("\t\treturn buffer.toString();");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t}");  //$NON-NLS-1$        
        out.write(NL);         
    }
}
